:host {
  flex: 1 0 auto;
  min-width: 20rem;

  nb-card {
    margin: 0;
  }
  nb-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
  }
  .title {
    flex: 1 0 auto;
    margin-right: 3rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .buttons {
    width: 9.5rem;
    display: flex;
    justify-content: flex-end;

    [nbButton] {
      flex: 0 0 3rem;
    }
  }
}

:host(.full-screen) {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

:host(.maximized) nb-card {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

:host(.minimized) nb-card {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  height: auto;

  nb-card-header {
    border-bottom: none;
  }
}
